package cn.crm.service.impl;

import cn.crm.dao.SalPlanDao;
import cn.crm.dao.StorageDao;
import cn.crm.pojo.SalPlan;
import cn.crm.pojo.Storage;
import cn.crm.service.SalPlanService;
import cn.crm.service.StorageService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)//事务回滚
@Service
public class StorageServiceImpl extends ServiceImpl<StorageDao, Storage> implements StorageService {
    @Autowired
    private StorageDao storageDao;

    @Override
    public Page<Storage> getStoragePageJoinProduct(Page page) {
        return storageDao.getStoragePageJoinProduct(page);
    }
}
